package com.wlyy.his.ze.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: 10097
 * @date: 2021/8/27 15:18
 * @description:
 */
@Configuration
public class ZeAutoConfiguration {


    @Bean
    @ConfigurationProperties(prefix = "ze.api")
    public ZeApiProperties zeApiProperties(){
        return new ZeApiProperties();
    }


    @Bean
    public ZeConfigInit zeConfigInit() {
        return new ZeConfigInit(zeApiProperties());
    }
}
